package com.beiye.drivertransport.adapter;

import android.content.Context;
import android.widget.TextView;

import com.android.frame.adapter.CommonAdapter;
import com.android.frame.adapter.ViewHolder;
import com.beiye.drivertransport.R;
import com.beiye.drivertransport.bean.WarningDangerBean;

import java.util.List;

/**
 * Created by ky on 2018/5/28.
 */


public class WarnDangerApt extends CommonAdapter<WarningDangerBean.RowsBean> {
    private final List<WarningDangerBean.RowsBean> mList;
    private Context context;



    public WarnDangerApt(Context context, List<WarningDangerBean.RowsBean> mList, int itemLayoutId) {
        super(context, mList, itemLayoutId);
        this.context = context;
        this.mList = mList;
    }

    @Override
    public void convert(ViewHolder holder, WarningDangerBean.RowsBean item, final int position) {
        TextView tv_warn = holder.getView(R.id.tv_warn);
        TextView tv_warnnum = holder.getView(R.id.tv_warn1);
        String loopholeItem = mList.get(position).getLoopholeItem();
        int liNo = mList.get(position).getLiNo();
        tv_warn.setText(loopholeItem);
        tv_warnnum.setText(liNo+"");
    }




}